<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/axios.js"></script>
    <script>
        var e=new Error(111);
        console.log(e);
        console.error(e);
        console.dir(e);
        console.log(e.message);

        function sendBaseAjax(){
            var p= axios.get("http://localhost/filmApi/loadTyps11111.php");
            p.then(function(){
                console.log(1111)
            }).catch(function(error){
                console.log(error)
                console.log(error.message)
                console.log("请求发送时的配置:",error.config)
                console.log("当前请求使用的XMLHttpRequest对象",error.request)
                console.log("错误响应对象:",error.response )
            })
        }
    </script>
</head>
<body>
    <input type="button" value="发生请求" onclick="sendBaseAjax()">
</body>
</html>